﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace PersonaLibrary.Commands.EditCommands
{
    public class SimplyNewCommand<TViewModel> : CommandBase
        where TViewModel : ViewModel.IViewModel
    {
        public override bool CanExecute(object parameter)
        {
        	return true;
        }

        public override void Execute(object parameter)
        {
        	TViewModel viewModel = Activator.CreateInstance<TViewModel>();
			((App)Application.Current).AddViewModel(viewModel);

        }
    }
}
